import request from "../utils/request";

// 跟新用户信息
const upDateUserInfoApi = (userForm) => {
  return request({
    method: "put",
    url: "/my/userinfo",
    data: userForm
  })
}

// 上传头像
const upDateUserAvatarApi = (avatarStr) => {
  return request({
    method: "patch",
    url: "/my/update/avatar",
    data: {
      avatar: avatarStr
    }
  })
}

// 更新密码
const updatePwdApi = (pwdForm) => {
  return request({
    method: 'patch',
    url: '/my/updatepwd',
    data: pwdForm
  })
}
export {
  upDateUserInfoApi,
  upDateUserAvatarApi,
  updatePwdApi
}
